#-------------------------------------------------
#
# Project created by QtCreator 2015-12-24T09:17:20
#
#-------------------------------------------------

QT       += core gui dbus sql network KWindowSystem x11extras

greaterThan(QT_MAJOR_VERSION, 4): QT += widgets
LIBS +=-lpthread
LIBS +=-lX11
TARGET = kylin-simpleupdate
TEMPLATE = app
CONFIG += link_pkgconfig
PKGCONFIG += gsettings-qt
target.source += $$TARGET
target.path = /usr/share/kylin-update-desktop

QMAKE_CXXFLAGS += -std=c++11
TRANSLATIONS = translation/update_zh_CN.ts

qm.path = /usr/share/kylin-update-desktop/translation
qm.files = translation/update_zh_CN.qm

INSTALLS += target \
            qm
SOURCES += main.cpp\
        mainwindow.cpp \
    cmdthread.cpp \
    button.cpp \
    select_button.cpp \
    tip_widget.cpp \
    title.cpp \
    massage_widget.cpp \
    top_widget.cpp \
    quit_widget.cpp \
    db_installed_imformation.cpp \
    xatom-helper.cpp

HEADERS  += mainwindow.h \
    cmdthread.h \
    button.h \
    select_button.h \
    tip_widget.h \
    title.h \
    massage_widget.h \
    top_widget.h \
    quit_widget.h \
    db_installed_imformation.h \
    xatom-helper.h

FORMS    += mainwindow.ui

RESOURCES += \
    img.qrc
